
from django.conf.urls import url
from homes import views



urlpatterns = [
    # 城区列表
    url(r'^api/v1.0/areas/$',views.AreaListView.as_view()),
    # 房屋搜索
    url(r'^api/v1.0/houses/$', views.EshouseView.as_view()),
    # 房源
    url(r'^api/v1.0/houses$',views.HomeSourceView.as_view()),

    # 我的房屋列表
    url(r'^api/v1.0/user/houses/$',views.HomeListView.as_view()),
    # 首页房屋推荐
    url(r'^api/v1.0/houses/index/$',views.IndexHomeView.as_view()),
    # 房屋详情页面
    url(r'^api/v1.0/houses/(?P<house_id>\d+)/$', views.DetailView.as_view()),
    # 上传房屋图片
    url(r'^api/v1.0/houses/(?P<house_id>\d+)/images', views.UpdateHouseImage.as_view()),
]